import React from "react"
const Home = React.lazy(()=>import("../component/home/Home"));
const Category = React.lazy(()=>import("../component/category/Category"))
const Cart = React.lazy(()=>import("../component/cart/Cart"))
const My = React.lazy(()=>import("../component/my/My"))

const routes = [
    {
        path:"/",// 路径
        component:Home,
        exact:true
       /* 
        routes:[
            {
                path:"/mm",
                component:MM
            }
        ]
       */
    },{
        path:"/category",
        component:Category
        // category/list
    },{
        path:"/cart",
        component:Cart
    },{
        path:"/my",
        component:My
    }
]
export default routes;